<template>
  <view :class="[`${prefixCls}-footer-operations`]" :style="{ paddingBottom: `${buttomSafeArea}px` }">
    <slot />
  </view>
</template>

<script>
export default {
  name: 'cuFooterOperate',
  props: {
    bgColor: {
      type: String,
      default: '#fff',
    },
  },
  data() {
    return {}
  },
  // 侦听属性
  watch: {},
  // 计算属性
  computed: {
    buttomSafeArea() {
      return this.$Platform.device.safeAreaInsets.bottom || 10
    },
  },

  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped>
.#{prefixCls('footer-operations')} {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: v-bind(bgColor);
  padding: 20rpx 30rpx;
  z-index: 99;
  overflow: hidden;
}
</style>
